package com.CMS.client;

import java.util.List;

import com.CMS.server.domain.ItemMenu;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("itemMenu")
public interface ItemMenuService extends RemoteService{
	
	public void create(ItemMenu item);
	
	public List<ItemMenu> getItems();
	
	public void create(String description, long idMenu);

	public void update(String description, long idSubItem, boolean flagDelete, long id);
	
	public void delete(long id);
	
	public void create(String description, long idMenu, long idItem);
	
	public ItemMenu getItem(long idItem);
	
	public void updateItem(String description, long id, long idMenu, long idPadre, boolean flagDelete);
}
